package com.fas.system.mapper;

import com.fas.system.domain.FasEquipmentHistoryStatistical;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface FasEquipmentHistoryStatisticalMapper {

    int insertStatistical(@Param("list") List<FasEquipmentHistoryStatistical> fasEquipmentHistoryStatisticalList);

    int existsBatchNumber(@Param("batchNumber")String batchNumber,@Param("week")Integer week);

    /**
     * 查询周报列表
     * @param fasEquipmentHistoryStatistical
     * @return
     */
    List<FasEquipmentHistoryStatistical> selectWeek(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);
    List<FasEquipmentHistoryStatistical> selectMonth(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);
    List<FasEquipmentHistoryStatistical> selectYear(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);

    /**
     * 查询周报详细
     * @param fasEquipmentHistoryStatistical
     * @return
     */
    List<FasEquipmentHistoryStatistical> selectWeekDetail(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);
    List<FasEquipmentHistoryStatistical> selectMonthDetail(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);
    List<FasEquipmentHistoryStatistical> selectYearDetail(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);

    Date selectUpdateByDate(FasEquipmentHistoryStatistical fasEquipmentHistoryStatistical);
}
